#include "tinyxml2.h"
#include <iostream>
#include <string>
#include <regex>
#include <vector>
#include <fstream>
#include<sstream>
#include<map>

using std::cout;
using std::endl;
using std::string;
using std::vector;
using std::ofstream;
using std::map;
using std::pair;

using namespace tinyxml2;

struct RSSIteam
{
    string _title;
    string _link;
    string _description;
    string _content;
};

class RSS
{
public:
    RSS(size_t capa);
    //读文件
    void read(const string &filename);
    //写文件
    void store(const string &filename,int &pbidx,size_t &off,map<int,pair<int,int>> &offlib);
    bool isSpace(string);
private:
    vector<RSSIteam> _rss;
};

